package com.its.oa.model;

import java.util.HashSet;
import java.util.Set;


/**
 * Module entity. @author MyEclipse Persistence Tools
 */

public class Module  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
     private String code;
     private String name;
     private String parentid;
     private String path;
     private String idPath;
     private Set<Permission> permissions = new HashSet<Permission>(0);


    // Constructors

    /** default constructor */
    public Module() {
    }

    
    /** full constructor */
    public Module(String code, String name, String parentid, String path, String idPath, Set<Permission> permissions) {
        this.code = code;
        this.name = name;
        this.parentid = parentid;
        this.path = path;
        this.idPath = idPath;
        this.permissions = permissions;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getParentid() {
        return this.parentid;
    }
    
    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public String getPath() {
        return this.path;
    }
    
    public void setPath(String path) {
        this.path = path;
    }

    public String getIdPath() {
        return this.idPath;
    }
    
    public void setIdPath(String idPath) {
        this.idPath = idPath;
    }

    public Set<Permission> getPermissions() {
        return this.permissions;
    }
    
    public void setPermissions(Set<Permission> permissions) {
        this.permissions = permissions;
    }
   








}